#pragma once

#include <gl\glew.h>

class Texture
{


public:
	Texture();
	Texture(char *fileName);
	Texture(size_t width, size_t height);
	~Texture();
	

	char *_filename;
	GLuint _handle;
	unsigned int _width, _height;

	GLuint getId(){ return _handle; }
	unsigned int getWidth(){ return _width; }
	unsigned int getHeight(){ return _height; }

	// Clamping on/off
	int _clamp;

	// Load a texture from file. Returns the texture handle for convenience.
	//GLuint load_texture(char *aFilename, int clamp = 1); 
private:
	void init();
	void createEmptyTexture(size_t width, size_t height);
};